#include "Producer.h"
#include "Consumer.h"
#include <iostream>
#include <thread>

using std::cout;
using std::endl;
using std::thread;

void test(){
    Producer pro;
    Consumer con;

    TaskQueue task(5);

    thread thpro(&Producer::produce,&pro,std::ref(task));
    thread thcon(&Consumer::consume,&con,std::ref(task));

    thpro.join();
    thcon.join();
}

int main()
{
    test();
    return 0;
}

